package com.service.impl;

import com.entity.Photo;
import com.mapper.PhotoMapper;
import com.service.PhotoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PhotoServiceImpl extends ServiceImpl<PhotoMapper, Photo> implements PhotoService {

    @Override
    public List<Map<String, Object>> newsById(Integer newsId) {
        return baseMapper.newsById(newsId);
    }

    @Override
    public List<Map<String, Object>> essayById(Long essayId) {
        return baseMapper.essayById(essayId);
    }

    @Override
    public List<Map<String, Object>> styleById(Integer styleId) {
        return baseMapper.styleById(styleId);
    }
}
